package com.cc.visitor.dao;

import com.cc.visitor.entity.Employee;
import com.cc.visitor.entity.TemplateMsg;
import com.cc.visitor.entity.TemplateMsgMain;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author chanchaw
 * @create 2024-12-02 19:27
 */
@Repository
public interface TemplateMsgMainMapper extends BaseMapper<TemplateMsgMain> {
    @Select("select * from template_msg_main where template_id = #{templateId}")
    TemplateMsg select8TemplateId(@Param("templateId") String templateId);
    @Select("select * from template_msg_main where sname = #{sname}")
    TemplateMsg select8Name(@Param("sname") String sname);
}
